import request from "@/utils/requist";
// let url = "http://39.100.39.50:5051"

// 载体详情
export const GetProjectPdf = ({ id }) => {
  return request({
    method: "post",
    url: "/api/attract/industry/GetProjectPdf",
    data: {
      id,
    },
  });
};
// 载体详情
export const CarrierDetails = ({ id }) => {
  return request({
    method: "post",
    url: "/api/atlas/carrier/detail",
    data: {
      id,
    },
  });
};

//招商政策列表详情
export const policyDetails = ({ id }) => {
  return request({
    method: "post",
    url: "/api/attract/industry/policyDetails",
    data: {
      id,
    },
  });
};

// 高校
export const orgsDetail = ({ id, cateone }) => {
  return request({
    method: "post",
    url: "/api/atlas/orgs/detail",
    data: {
      id,
      cateone,
    },
  });
};
// 太原企业详情
export const tyEpDetails = ({ id }) => {
  return request({
    method: "post",
    url: "/api/atlas/enterprise/detail",
    data: {
      id,
    },
  });
};

// 全国企业 详情
export const nationwideEpDetails = ({ id }) => {
  return request({
    method: "post",
    url: "/api/portraits/industry/detail",
    data: {
      id,
    },
  });
};
// 详情图谱
export const detailsZero = ({ company_name }) => {
  return request({
    method: "post",
    url: "/api/atlas/find_zero",
    data: {
      company_name,
    },
  });
};

// 详情图谱
export const detailsNext = ({ name, category }) => {
  return request({
    method: "post",
    url: "/api/atlas/find_next",
    data: {
      name,
      category,
    },
  });
};

export const getSemicMap = ({ company_name }) => {
  return request({
    method: "post",
    url: "/api/atlas/get_semic_map",
    data: {
      company_name,
    },
  });
};

// 骨干企业详情收藏
export const epCollect = ({ id, collect, choice }) => {
  return request({
    method: "post",
    url: "/api/atlas/enterprise/collect",
    data: {
      id,
      collect,
      choice,
    },
  });
};

//企业风险 股权出质
export function GetEnterpriseEquity(id, type) {
  return request({
    url: "/api/portraits/industry/GetEnterpriseEquity",
    method: "post",
    data: {
      id,
      type
    },
  });
}

// 经营状况-行政处罚
export function GetEnterprisePunish(id, type) {
  return request({
    url: "/api/portraits/industry/GetEnterprisePunish",
    method: "post",
    data: {
      id,
      type
    },
  });
}
// 经营状况-进出口信用
export function GetEnterpriseInoutInfo(id, type) {
  return request({
    url: "/api/portraits/industry/GetEnterpriseInoutInfo",
    method: "post",
    data: {
      id,
      type
    },
  });
}


// 知识产权-专利信息
export function GetEnterprisePatent(id, type) {
  return request({
    url: "/api/portraits/industry/GetEnterprisePatent",
    method: "post",
    data: {
      id,
      type
    },
  });
}
// 经营状况-行政许可
export function GetEnterpriseLicence(id, type) {
  return request({
    url: "/api/portraits/industry/GetEnterpriseLicence",
    method: "post",
    data: {
      id,
      type
    },
  });
}
// 经营状况-资质证书
export function GetEnterpriseCertificate(id, type) {
  return request({
    url: "/api/portraits/industry/GetEnterpriseCertificate",
    method: "post",
    data: {
      id,
      type
    },
  });
}
// 经经营状况-税务信用
export function GetEnterpriseTaxInfo(id, type) {
  return request({
    url: "/api/portraits/industry/GetEnterpriseTaxInfo",
    method: "post",
    data: {
      id,
      type
    },
  });
}
// 经营状况-供应商
export function GetEnterpriseSupplier(id, type) {
  return request({
    url: "/api/portraits/industry/GetEnterpriseSupplier",
    method: "post",
    data: {
      id,
      type
    },
  });
}
// 经营状况-客户
export function GetEnterpriseClient(id, type) {
  return request({
    url: "/api/portraits/industry/GetEnterpriseClient",
    method: "post",
    data: {
      id,
      type
    },
  });
}